package StudyCode.summary.Basic.mylong;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class LongFromString {
	public static void main(String[] args) {
		String str = "100";
		Long lObj1 = new Long(str);
		System.out.println("方法一(构造函数):" + lObj1);

		Long lObj2 = Long.valueOf(str);
		System.out.println("方法一(Long.valueOf):" + lObj2);

	}
}
